package com.tidc.seaserverservice.util;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author ：冯涛滔
 * @date ：Created in 2020/9/11 11:16
 * @description：
 * @modified By：
 * @version:
 */
@Slf4j
@Component
public class LogUtil {
    public void info(String message){
        log.info(DateUtil.getTime()+":"+message);
    }

    public void error(String message){
        log.error(DateUtil.getTime()+":"+message);
    }
    public void error(String message,Exception e){
        log.error(DateUtil.getTime()+":"+"Error: "+ e + "Message: " +message);
    }
    public void debug(String message){
        log.debug(DateUtil.getTime()+":"+message);
    }
}
